package com.huitong.common.redis.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * 缓存常量
 *
 * @author fromdrowning
 * @date 2024/3/21 9:35
 */
@NoArgsConstructor(access = AccessLevel.PACKAGE)
public class CacheConstant {

    /**
     * 验证码key
     */
    public static final String CAPTCHA_KEY_NAME = "captcha:";

    /**
     * 验证码有效期 分钟
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 密码错误次数key
     */
    public static final String ERROR_USER_KEY = "errorUser:";

    /**
     * 学院key
     */
    public static final String COLLEGE_KEY_NAME = "college";

    /**
     * 专业key
     */
    public static final String MAJOR_KEY_NAME = "major";

    /**
     * 班级key
     */
    public static final String CLASS_KEY_NAME = "class";

}
